import { h } from 'vue';
import { NTag, NAvatar } from 'naive-ui';
export const columns = [
    {
        title: '流程模型图标',
        key: 'flowModelIcon',
        width: 120,
        render(row) {
            return h(
                NAvatar,
                {
                    src: row.flowModelIcon,
                    round: true
                },
            );
        },
    },
    {
        title: '流程模型名称',
        key: 'flowModelName'
    },
    {
        title: '流程分组',
        key: 'groupName'
    },
    {
        title: '流程类型',
        key: 'flowModelType',
        width: 120,
        render(row) {
            return h(
                NTag,
                {
                    type: row.flowModelType === 1 ? 'success' : 'info',
                },
                {
                    default: () => (row.flowModelType === 1 ? '工作流' : '协同作战任务'),
                }
            );
        },
    },
];